package com.llp.declaresystem.mapper;

import com.llp.declaresystem.domain.entity.CategoryUnit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author NASK
* @description 针对表【category_unit(项目类别_单位中间表)】的数据库操作Mapper
* @createDate 2022-11-23 16:22:05
* @Entity com.llp.declaresystem.entity.CategoryUnit
*/
@Mapper
public interface CategoryUnitMapper extends BaseMapper<CategoryUnit> {

    @Select("select categoryid from  category_unit where unitid=#{unitid}")
    List<Integer> selectByUnitid(Integer unitid);
}




